package com.cash.channel.api.model.response;

import com.cash.channel.api.model.DataModel;
import com.cash.channel.api.model.repay.RepayPlanModel;
import com.google.common.collect.Lists;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class RepayPlanListResponse implements DataModel, Serializable {

    //订单号	String
    private String orderNo;

    //是否支持提前结清
    private Integer earlyRepay;

    //银行code
    private String bankCode;

    //银行名称
    private String bankName;

    //银行卡号
    private String cardNo;

    //提现订单号
    private String withdrawId;

    //还款计划
    private List<RepayPlanModel> repayPlan;

    public RepayPlanListResponse(String orderNo, Integer earlyRepay, String bankCode, String bankName, String cardNo,String withdrawId, List<RepayPlanModel> repayPlan) {
        this.orderNo = orderNo;
        this.earlyRepay = earlyRepay;
        this.bankCode = bankCode;
        this.bankName = bankName;
        this.cardNo = cardNo;
        this.withdrawId = withdrawId;
        this.repayPlan = repayPlan;
    }

    public RepayPlanListResponse(String orderNo, Integer earlyRepay, String bankCode, String bankName,String withdrawId, String cardNo) {
        this.orderNo = orderNo;
        this.earlyRepay = earlyRepay;
        this.bankCode = bankCode;
        this.bankName = bankName;
        this.cardNo = cardNo;
        this.withdrawId = withdrawId;
        this.repayPlan = Lists.newArrayList();
    }

    public RepayPlanListResponse() {
    }
}
